home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-09-14 | 3.2 KB | 136 lines | [TEXT/MPS ] |
- # Note: this script assumes that your MPW and PCCTS directories are
- # of a standard configuration.
-
- # To install PCCTS: 'Set Directory' to the directory containing this
- # file (should be the main PCCTS directory) and execute this script.
- #
- # By default, it will install ANTLR and DLG in your {MPW}Tools folder.
- #
- # It will ask you if you want to compile the demos in the 'lang' directory.
- #
- # ANTLR and DLG have Commando interfaces, check them out.
- #
- # Report MPW-Specific problems to Scott Haney at haney@random.llnl.gov.
-
- Echo "# `Date -t` ----- Building PCCTS v1.23 for MPW."
-
- # Make 'Macintosh' folders to hold object files.
-
- Echo "# `Date -t` ----- Making Object File Folders."
- If (!`exists :dlg:Macintosh:`)
- NewFolder :dlg:Macintosh:
- End
- If (!`exists :antlr:Macintosh:`)
- NewFolder :antlr:Macintosh:
- End
- If (!`exists :support:set:Macintosh:`)
- NewFolder :support:set:Macintosh:
- End
- If (!`exists :support:sym:Macintosh:`)
- NewFolder :support:sym:Macintosh:
- End
- If (!`exists :lang:C:Macintosh:`)
- NewFolder :lang:C:Macintosh:
- End
- If (!`exists :lang:Pascal:Macintosh:`)
- NewFolder :lang:Pascal:Macintosh:
- End
-
- Echo "# `Date -t` ----- Done."
- Echo "#"
-
- # DLG build commands
-
- Echo "# `Date -t` ----- Building DLG."
- Echo "# `Date -t` ----- Analyzing dependencies."
- Directory :dlg:
- Begin
- If (!`exists dlg.make`)
- Move -y makefile.mpw dlg.make
- End
- If (!`exists dlg.r`)
- Move -y dlg.mpw.r dlg.r
- End
- Echo "Set Echo 1"
- Make Install -f dlg.make
- End > dlg.makeout
- Echo "# `Date -t` ----- Executing build commands."
- dlg.makeout
- Delete dlg.makeout
- Echo "# `Date -t` ----- Done."
- Echo "#"
- Directory ::
-
- # ANTLR build commands
-
- Echo "# `Date -t` ----- Building ANTLR."
- Echo "# `Date -t` ----- Analyzing dependencies."
- Directory :antlr:
- Begin
- If (!`exists antlr.make`)
- Move -y makefile.mpw antlr.make
- End
- If (!`exists antlr.r`)
- Move -y antlr.mpw.r antlr.r
- End
- Echo "Set Echo 1"
- Make Install -f antlr.make
- End > antlr.makeout
- Echo "# `Date -t` ----- Executing build commands."
- antlr.makeout
- Delete antlr.makeout
- Echo "# `Date -t` ----- Done."
- Echo "#"
- Directory ::
-
- # Ask If they want the demos built.
-
- Set Exit 0
- Confirm -t "Do you want me to build the demos in the ∂"lang∂" folder?"
- If ({Status} == 0)
-
- # PROTO build commands
-
- Echo "# `Date -t` ----- Building PROTO."
- Echo "# `Date -t` ----- Analyzing dependencies."
- Directory :lang:C:
- Begin
- If (!`exists proto.make`)
- Move -y makefile.mpw proto.make
- End
- Echo "Set Echo 1"
- Make proto -f proto.make
- End > proto.makeout
- Echo "# `Date -t` ----- Executing build commands."
- proto.makeout
- Delete proto.makeout
- Echo "# `Date -t` ----- Done."
- Echo "#"
- Directory :::
-
- # PASCAL build commands
-
- Echo "# `Date -t` ----- Building PASCAL."
- Echo "# `Date -t` ----- Analyzing dependencies."
- Directory :lang:Pascal:
- Begin
- If (!`exists pascal.make`)
- Move -y makefile.mpw pascal.make
- End
- Echo "Set Echo 1"
- Make pascal -f pascal.make
- End > pascal.makeout
- Echo "# `Date -t` ----- Executing build commands."
- pascal.makeout
- Delete pascal.makeout
- Echo "# `Date -t` ----- Done."
- Echo "#"
- Directory :::
-
- End
- Set Exit 1
-
- # Done
-
- Echo "# `Date -t` ----- Done Building PCCTS v1.23. Have a nice day."
-